import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import jifen from "../views/jifen"
import friendlink from '../views/friendlink'
import endmyorder from "../views/endmyorder"
import addgoods from "../views/addgoods";
import duihuanGoods from "../views/duihuanGoods";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      meta:{index:'1'},
      component: HelloWorld
    },
    {
      path: '/jifen',
      name: 'jifen',
      meta:{index:'2'},
      component:jifen
    },
    {
      path: '/friendlink',
      name: 'friendlink',
      meta:{index:'3'},
      component:friendlink
    },
    {
      path: '/endmyorder',
      name: 'endmyorder',
      meta:{index:'4'},
      component:endmyorder
    },
    {
      path: '/addgoods',
      name: 'addgoods',
      meta:{index:'5'},
      component:addgoods
    },
    {
      path: '/duihuanGoods',
      name: 'duihuanGoods',
      meta:{index:'6'},
      component:duihuanGoods
    }
  ]
})
